package com.longcai.cm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author LBX
 * @since 2024-08-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("v_order_list")
@ApiModel(value = "VOrderList对象", description = "VIEW")
public class VOrderList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private String id;

    @ApiModelProperty("用户id")
    @TableField("member_id")
    private Integer memberId;

    @ApiModelProperty("订单号")
    @TableField("order_num")
    private String orderNum;

    @ApiModelProperty("门店id")
    @TableField("shop_id")
    private String shopId;

    @ApiModelProperty("门店名称")
    @TableField("shop_name")
    private String shopName;

    @ApiModelProperty("商品id")
    @TableField("good_id")
    private String goodId;

    @ApiModelProperty("商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty("商品图片")
    @TableField("good_img")
    private String goodImg;

    @ApiModelProperty("订单状态 0待支付 1待使用 2待评价 3已完成 4已取消 5退款")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty("订单状态 0未结算 1 已结算")
    @TableField("check_status")
    private Integer checkStatus;

    @ApiModelProperty("订单类型 1团购 2秒杀 3团券 4会员")
    @TableField("order_type")
    private Integer orderType;

    @ApiModelProperty("订单价格")
    @TableField("order_amount")
    private BigDecimal orderAmount;

    @ApiModelProperty("支付金额")
    @TableField("pay_amount")
    private BigDecimal payAmount;

    @ApiModelProperty("支付时间")
    @TableField("pay_time")
    private String payTime;

    @ApiModelProperty("支付方式 1微信2支付宝")
    @TableField("pay_type")
    private Integer payType;

    @ApiModelProperty("核销时间")
    @TableField("use_time")
    private String useTime;

    @ApiModelProperty("核销人姓名")
    @TableField("check_username")
    private String checkUsername;

    @ApiModelProperty("核销人id")
    @TableField("check_user_id")
    private Integer checkUserId;

    @ApiModelProperty("过期时间")
    @TableField("expire_time")
    private String expireTime;

    @ApiModelProperty("优惠金额")
    @TableField("reduce_amount")
    private BigDecimal reduceAmount;

    @ApiModelProperty("积分使用")
    @TableField("integral")
    private Integer integral;

    @ApiModelProperty("优惠券id")
    @TableField("coupon_id")
    private String couponId;

    @ApiModelProperty("微信订单id")
    @TableField("transition_id")
    private String transitionId;

    @ApiModelProperty("下单时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty("联系电话")
    @TableField("contact_mobile")
    private String contactMobile;

    @ApiModelProperty("期望上门时间")
    @TableField("expect_service_time")
    private String expectServiceTime;

    @ApiModelProperty("取消原因")
    @TableField("cancel_reason")
    private String cancelReason;

    @ApiModelProperty("备注信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("订单利润")
    @TableField("order_profit")
    private BigDecimal orderProfit;

    @ApiModelProperty("订单应付(计算方式：订单实际支付金额 - 平台佣金 - 手续费)")
    @TableField("order_payable")
    private BigDecimal orderPayable;

    @ApiModelProperty("退款状态 0待审核 1通过 2拒绝")
    @TableField("refund_status")
    private Integer refundStatus;

    @ApiModelProperty("拒绝原因")
    @TableField("refuse_reason")
    private String refuseReason;


}
